package com.ovt.biz.impl;

import java.util.List;

import com.ovt.biz.UserBiz;
import com.ovt.dao.UserDao;
import com.ovt.dao.impl.UserDaoImpl;
import com.ovt.entity.User;
import com.ovt.util.Page;

public class UserBizImpl implements UserBiz {
	UserDao userDao = new UserDaoImpl();
	@Override
	public User login(String userName, String password) {
		
		return userDao.findUser(userName, password);
	}

	@Override
	public List<User> getUserList(Page page) {
		List<User> list = userDao.getUserList(page);
		return list;
	}

	@Override
	public int getUserListCount() {
		return userDao.getUserListCount();
	}

}
